<?php
session_start();
include_once '../tools/DbTools.php';
session_start();
include_once '../common/common.php';
$isLogin = getLoginStatus();
DbTools::init();
$token = $_COOKIE['Token'];
$Sql = "select CardMoney from bankcard where CardId=" . $_SESSION[$token]['CardId'];
$result = DbTools::select($Sql);
$Money = $result[0]['CardMoney'];
?>
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>用户中心</title>
</head>

<body>
  <input type="hidden" id="login" value="<?php echo $isLogin ?>">
  <form action="inLoading.php" method="post">
    当前: <input type="text" name="oldmoney" id="" value="<?php echo $Money ?>" disabled />
    <br />
    添加: <input type="text" name="newmoney" id="" />
    <br />
    <input type="submit" name="" id="" value="提交" />
  </form>
  <a href="userinfoAction.php">返回</a>
  <script>
    var login = document.getElementById('login').value;
    if (!login) {
      location.href = '../user/userinfoAction.php';
    }
  </script>
</body>

</html>